Passed
Push — master ( cc9df7...a66138 )
by Björn
02:29
created

T_VAR ➔ ... ➔ childProcess.exec(ꞌꞌgit diff-index --name-only HEAD --ꞌꞌ)   A

Complexity

Conditions 1
Paths 2

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 1
Metric Value
dl 0
loc 1
ccs 0
cts 1
cp 0
rs 10
c 1
b 1
f 1
cc 1
nc 2
crap 2
nop 2
1 1
var childProcess = require('child_process');
2
3 1
module.exports = {
4
5
  log: function(filepath, pretty, callback) {
0 ignored issues
show
Unused Code introduced by
The parameter callback is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
6 6
	  var dateformat = 'format:"%d/%m/%Y"';
7
	  
8
	  // git log --date=format:"%d/%m/%Y" --pretty=format:"## %cd%n- %an <%ae>: %s (%H)" src/partials/atoms/link/index.html
9 6
	  var cmd = 'git log' + 
10
          (' --date='+dateformat) + 
11
          (pretty ? ' --pretty='+pretty : '') + 
12
	      (filepath ? ' '+filepath : '');
13
	  
14 6
	  return childProcess.execSync(cmd);
15
  }
16
17
};
18